﻿@model IEnumerable<SQLResident.Models.Alert>

@{
    ViewBag.Title = "Index";
}

<ul class="breadcrumb">
    <li><a href="@Url.Action("Index","Home")">Inicio</a> <span class="divider">/</span></li>
    <li class="active">Alertas</li>
</ul>

<div class="page-header">
    <h1>
        Alertas
        <small>Item/s encontrado/s</small>
    </h1>
</div>

<div class="pull-right">
    <div class="btn">
        @Html.ActionLink("Crear Nuevo", "Create")
    </div>
</div>
<br />
<br />
<table class="table table-striped">
    <tr>
        <th>
            Description
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            <a href="@Url.Action("Edit", "Alert", new { id=item.AlertId })"><i class="icon-edit"></i> Editar</a>
            <a href="@Url.Action("Details", "Alert", new { id = item.AlertId })"><i class="icon-hand-right"></i> Detalles</a>
            <a href="@Url.Action("Delete", "Alert", new { id = item.AlertId })"><i class="icon-trash"></i> Eliminar</a>
        </td>
    </tr>
}

</table>
